package com.kaili.common.pojo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author:lsw
 * @Time: 19-7-23 下午8:15
 * @Copyright: ©  杭州凯立通信有限公司 版权所有
 * @Warning: 本内容仅限于公司内部传阅, 禁止外泄或用于其它商业目的
 */
@Document(collection="t_sys_login_log")
@Data
@ApiModel(description = "系统登陆日志")
public class SysLoginLogEntity {
    @Id
    @ApiModelProperty("日志id")
    private String id;

    @ApiModelProperty("帐号")
    private String userName;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("所属机构")
    private String organ;

    @ApiModelProperty("角色")
    private String roleName;

    @ApiModelProperty("登录时间")
    private Date loginTime;

    @ApiModelProperty("登出时间")
    private Date logoutTime;

    @ApiModelProperty("登录地址")
    private String loginAddress;

    @ApiModelProperty("登录方式")
    private String loginType;

    @ApiModelProperty("登录终端名")
    private String deriveName;

    @ApiModelProperty("Ip地址")
    private String ipv4;
}
